package top.chenf.mq;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @Author: romantic_ke@163.com
 * @Description:
 * @Date: 2019/8/11 20:56
 */
@Component
public class MsgReceiver {

    @RabbitListener(queues = "hello-queue")
    public void process(String msg) {
        System.out.println("receiver:" + msg);
    }
}
